# 7.4 比萨配料 active
prompt = "\nPlease enter toppings you want to add: "
prompt += "\n Enter 'quit' to finish."
active = True
while active:
    topping = input(prompt)
    if topping=="quit":
        active=False
    else:
        print(f"Add {topping} to your pizza.")

# 7.5电影票
prompt="\nPlease enter your age: "
prompt+="\n Enter 'quit' to finish"
active=True
while active:
    age=input(prompt)
    if age=='quit':
        break
    age=int(age)
    if age<3:
        price=0
    elif age<12:
        price=10
    else:
        price=15
    if age==quit:
        active=False
    else:
        print(f"The ticket is ${price}.")

# 7.6 三种出路
# 7.4 条件测试：
prompt="\nPlease enter toppings you want to add: "
prompt+="\n Enter 'quit' to finish."
topping=""
while topping!="quit":
    topping=input(prompt)
    if topping!="quit":
        print(f"Add {topping} to your pizza.")

# 7.7
while True:
    print(89)